package top.buyibuyi.course.service.admin.impl;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.buyibuyi.course.dao.admin.SelectSemesterDao;
import top.buyibuyi.course.pojo.Semester;
import top.buyibuyi.course.service.admin.SelectSemesterService;

import java.util.List;

@Service
public class SelectSemesterServiceImpl implements SelectSemesterService {

    @Autowired
    private SelectSemesterDao selectSemesterDao;

    @Override
    public List<Semester> selectSemester(@Param("startPage") int startPage, @Param("limit") int limit) {
        return selectSemesterDao.selectSemester(startPage,limit);
    }

    @Override
    public int selectCount() {
        return selectSemesterDao.selectCount();
    }

    @Override
    public Semester selectSemesterById(int id) {
        return selectSemesterDao.selectSemesterById(id);
    }
}
